package com.ruoyi.resume.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resume.mapper.CvTechnologyMapper;
import com.ruoyi.resume.domain.CvTechnology;
import com.ruoyi.resume.service.ICvTechnologyService;

/**
 * 设计技术Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class CvTechnologyServiceImpl implements ICvTechnologyService 
{
    @Autowired
    private CvTechnologyMapper cvTechnologyMapper;

    /**
     * 查询设计技术
     * 
     * @param id 设计技术主键
     * @return 设计技术
     */
    @Override
    public CvTechnology selectCvTechnologyById(Long id)
    {
        return cvTechnologyMapper.selectCvTechnologyById(id);
    }

    /**
     * 查询设计技术列表
     * 
     * @param cvTechnology 设计技术
     * @return 设计技术
     */
    @Override
    public List<CvTechnology> selectCvTechnologyList(CvTechnology cvTechnology)
    {
        return cvTechnologyMapper.selectCvTechnologyList(cvTechnology);
    }

    /**
     * 新增设计技术
     * 
     * @param cvTechnology 设计技术
     * @return 结果
     */
    @Override
    public int insertCvTechnology(CvTechnology cvTechnology)
    {
        return cvTechnologyMapper.insertCvTechnology(cvTechnology);
    }

    /**
     * 修改设计技术
     * 
     * @param cvTechnology 设计技术
     * @return 结果
     */
    @Override
    public int updateCvTechnology(CvTechnology cvTechnology)
    {
        return cvTechnologyMapper.updateCvTechnology(cvTechnology);
    }

    /**
     * 批量删除设计技术
     * 
     * @param ids 需要删除的设计技术主键
     * @return 结果
     */
    @Override
    public int deleteCvTechnologyByIds(Long[] ids)
    {
        return cvTechnologyMapper.deleteCvTechnologyByIds(ids);
    }

    /**
     * 删除设计技术信息
     * 
     * @param id 设计技术主键
     * @return 结果
     */
    @Override
    public int deleteCvTechnologyById(Long id)
    {
        return cvTechnologyMapper.deleteCvTechnologyById(id);
    }
}
